package com.linsen.core.web.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * @author zhaoyong
 * @date 2023/3/13
 */
@Data
@RefreshScope
@ConfigurationProperties(prefix = "linsen.web")
public class LinsenWebProperties {
    /**
     * 是否开始跨域请求
     */
    Boolean requestCors = Boolean.TRUE;

    /**
     * 是否开始xss
     */
    Boolean requestXss = Boolean.TRUE;

    /**
     * 是否开始请求访问日志
     */
    Boolean requestAccessLog = Boolean.FALSE;

    /**
     * 打印栈信息
     */
    Boolean printStackTrace = Boolean.FALSE;
}
